<template>
  <div class="coupons">
    <div class="coupons_box">
      <img
        src="https://o6wndwjxn.qnssl.com/%E5%BC%B9%E7%AA%97@3x.png"
        alt=""
      >
      <div class="coupons_img">
        <div><span>{{type}}</span>&nbsp;元</div>
        <div>已成功领取课程优惠券</div>
        <div>仅限该课程使用</div>
      </div>
      <div
        class="coupons_btn"
        @click="CouponsBtn"
      >
        我知道了
      </div>
    </div>
    <!-- <img src="https://o6wndwjxn.qnssl.com/%E4%BC%98%E6%83%A0%E5%88%B8.svg" alt=""> -->
  </div>
</template>

<script>
export default {
  props: ['type'],
  data () {
    return {

    }
  },
  methods: {
    CouponsBtn () {
      this.$emit('CouponsBtn')
    }
  }
}
</script>

<style>
.coupons {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}
.coupons_box {
  margin-top: 20vh;
  text-align: center;
  position: relative;
}
.coupons_box > img {
  height: 40vh;
}
.coupons_img {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: 10%;
  text-align: center;
  width: 100%;
}
.coupons_img > div:nth-child(3) {
  margin-top: 1.3vh;
  font-family: PingFangSC-Regular;
  font-size: 12px;
  color: #ffbc44;
  text-align: center;
}
.coupons_img > div:nth-child(2) {
  margin-top: 8vh;
  font-family: PingFangSC-Medium;
  font-size: 16px;
  color: #ffffff;
  text-align: center;
}
.coupons_img > div:nth-child(1) {
  font-size: 15px;
  color: #fff;
  margin-top: 5vh;
}
.coupons_img > div:nth-child(1) span {
  font-size: 30px;
  font-weight: bold;
}

.coupons_btn {
  position: absolute;
  line-height: 30px;
  text-align: center;
  font-size: 15px;
  color: #bc6d05;
  left: 50%;
  top: 80%;
  transform: translate(-50%, 0);
}
</style>
